﻿using System;
using System.Windows.Data;

namespace Rio.Framework.Pages.Helpers
{
    public class ImageCutedOrCopiedConverter : IValueConverter
    {
        #region IValueConverter Members

        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            ImageRioSearch product = value as ImageRioSearch;

            if (product != null)
            {
                return product.IsCutedOrCopied;
            }

            return null;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
